<div class="userrecords view">
<h2><?php  echo __('Userrecord'); ?></h2>
	<dl>
		<dt><?php echo __('RecordID'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['RecordID']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('UserID'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['UserID']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('UserName'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['UserName']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Date'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['Date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Time'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['Time']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ChangedField'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['ChangedField']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('OldValue'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['OldValue']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('NewValue'); ?></dt>
		<dd>
			<?php echo h($userrecord['Userrecord']['NewValue']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Userrecord'), array('action' => 'edit', $userrecord['Userrecord']['RecordID'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Userrecord'), array('action' => 'delete', $userrecord['Userrecord']['RecordID']), null, __('Are you sure you want to delete # %s?', $userrecord['Userrecord']['RecordID'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Userrecords'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Userrecord'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Users'), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Users'); ?></h3>
	<?php if (!empty($userrecord['users'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('UserID'); ?></th>
		<th><?php echo __('UserName'); ?></th>
		<th><?php echo __('Password'); ?></th>
		<th><?php echo __('FirstName'); ?></th>
		<th><?php echo __('LastName'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($userrecord['users'] as $users): ?>
		<tr>
			<td><?php echo $users['UserID']; ?></td>
			<td><?php echo $users['UserName']; ?></td>
			<td><?php echo $users['Password']; ?></td>
			<td><?php echo $users['FirstName']; ?></td>
			<td><?php echo $users['LastName']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'users', 'action' => 'view', $users['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'users', 'action' => 'edit', $users['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'users', 'action' => 'delete', $users['id']), null, __('Are you sure you want to delete # %s?', $users['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Users'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
